﻿/*----------------------------------------------------------------
           // Copyright (C) 2008 安华顺通(北京)科技有限公司
           // 版权所有。 
           //
           // 文件名：DATAAREAID.cs
           // 文件功能描述：
           //
           // 
           // 创建标识：丁余良 2008 2008-9-8 10:21:10   建立文件
           //
           // 修改标识  //update1  at date...
           // 修改描述：
           //
           // 修改标识：//update2  at date...
           // 修改描述：
//----------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RuleCode.ObjectTree;


namespace RuleCode.Common
{
    public class TDATAAREAID : TString
    {
        public TDATAAREAID() : base() { this.ExtendDataType = typeof(EDATAAREAID); }
        public TDATAAREAID(System.String x) : base(x) { this.ExtendDataType =typeof (EDATAAREAID );}
        public static string Caption { get { return "DATAAREAID"; } }
        public static explicit operator System.String(TDATAAREAID x) { return x.Value; }
        public static implicit operator TDATAAREAID(System.String x) { return new TDATAAREAID(x); }
        public static explicit operator bool(TDATAAREAID x) { return x.Value == DefaultValue; }


        public override TableFieldStringProperty Property
        {
            get
            {
                if (this.property == null)
                {
                    this.property = new TableFieldStringProperty();
                    this.property.StringSize = 10; 
                    this.property.Adjustment = "Auto";
                    this.property.GroupPrompt = ""; 
                    this.property.SaveContents = Convert.ToBoolean("True"); 
                    this.property.Mandatory = Convert.ToBoolean("False");
                    this.property.AllowEditOnCreate = Convert.ToBoolean("True"); 
                    this.property.AllowEdit = Convert.ToBoolean("True");
                    this.property.Visible = Convert.ToBoolean("True"); 
                    this.property.AliasFor = "";
                    this.property.ExtendedDataType = "EDATAAREAID";
                    this.property.FieldType = "TString";
                    this.property.HelpLabel = ""; 
                    this.property.HelpText = "";
                    this.property.Name = "DATAAREAID"; 
                    this.property.Label = ""; 
                    this.property.LabelText = "DATAAREAID";
                    this.property.ID = "3999999"; 
                    this.property.Creator = "";
                    this.property.ChangedBy = ""; 
                    this.property.CreationDate = Convert.ToDateTime("2009-2-19 17:03:33");
                    this.property.ChangedDate = Convert.ToDateTime("2009-2-19 17:03:33");
                }
                return this.property;
            }
        }
    }

    public class EDATAAREAID : EString
    {
        public EDATAAREAID() : base() { }
        public EDATAAREAID(System.String x) : base(x) { }
        public static string Caption { get { return "DATAAREAID"; } }
        public static explicit operator System.String(EDATAAREAID x) { return x.Value; }
        public static implicit operator EDATAAREAID(System.String x) { return new EDATAAREAID(x); }
        public static explicit operator bool(EDATAAREAID x) { return x.Value == DefaultValue; }
    }
}
